package com.inspinia.base.web.simple.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Veblen
 * @date 2017/1/1
 */
public abstract class BaseController {

    /**
     * 日志对象
     */
    protected static Logger logger = LoggerFactory.getLogger(BaseController.class);

    /**
     * 跳转
     * @param url
     * @return
     */
    public String redirectTo(String url) {
        StringBuffer rto = new StringBuffer("redirect:");
        rto.append(url);
        return rto.toString();
    }
}
